package com.springboot.service.Impl;

import com.springboot.entity.Order;
import com.springboot.mapper.OrderMapper;
import com.springboot.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    OrderMapper orderMapper;
    @Override
    public Order SearchOrder(Integer userId) {
        return orderMapper.SearchOrder(userId);
    }

    @Override
    public Integer UpdateUserOrderStatus(Integer status,Integer userId) {
        return orderMapper.UpdateUserOrderStatus(status,userId);
    }

    @Override
    public List<Order> SearchAllUserOrder() {
        return orderMapper.SearchAllUserOrder();
    }
}
